package com.kingyun.gpsinspection.purificationservice.facade.service.tdm;

import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.EmployeeVo;
import com.kingyun.gpsinspection.purificationservice.facade.model.tdm.Hazard;
import com.kingyun.gpsinspection.purificationservice.facade.model.tdm.HazardVo;

import java.util.List;
import java.util.Map;

/**
 * Created by liyi on 2016/11/29.
 * 危害因素
 */
public interface HazardService {
    /**
     * 危害因素列表
     *
     * @param employeeVo
     * @param hazard
     * @return
     * @throws Exception
     */
    Map<String, Object> list(EmployeeVo employeeVo, HazardVo hazard)throws Exception;

    /**
     * 保存危害因素
     * @param employeeVo
     * @param hazard
     * @throws Exception
     */
    void saveHazard(EmployeeVo employeeVo, Hazard hazard)throws Exception;

    /**
     * 修改危害因素
     *
     * @param employeeVo
     * @param hazard
     * @return
     */
    int updateByPrimaryKey(EmployeeVo employeeVo, Hazard hazard);

    /**
     *  根据ID获取危害因素信息
     * @param hazardId
     * @return
     * @throws Exception
     */
    Hazard findHazardById(String hazardId)throws Exception;

    /**
     *  根据ID获取危害因素信息包装类
     * @param hazardId
     * @return
     * @throws Exception
     */
    HazardVo findHazardByIdNew(String hazardId)throws Exception;
    /**
     *  保存危害因素信息
     *
     * @param employeeVo
     * @param hazard
     * @param uploadFiles
     * @param deletedFiles
     * @return
     */
    int save(EmployeeVo employeeVo, Hazard hazard, String uploadFiles, String deletedFiles);

    /**
     * 修改危害因素信息
     *
     * @param employeeVo
     * @param hazard
     * @param uploadFiles
     * @param deletedFiles
     * @return
     */
    int update(EmployeeVo employeeVo, Hazard hazard, String uploadFiles, String deletedFiles);

    /**
     *  批量删除危害因素信息（软删除）
     * @param list
     * @return
     * @throws Exception
     */
    int delByIds(List<String> list)  throws Exception;
}
